package connect4client.commands;


import messages.*;


/**
 * The AccountCreationFailed command.
 * 
 * This command will handle AccountCreationFailed messages.
 */
public class AccountCreationFailedCommand extends Command {

	public AccountCreationFailedCommand(AccountCreationFailedMessage message){
		super(message);
	}
	
	@Override
	public void execute() {
		AccountCreationFailedMessage message = (AccountCreationFailedMessage) this.message;		
		guiMediator.accountCreationFailed(message.getOriginalMessage().getSenderLogin(), message.getOriginalMessage().getLogin(), message.getErrorCode());		
	}
}
